package com.xj.proxy.CglibProxy;



/**
 * @author: xujiang
 * @createTime: 2021/8/18 12:58:42
 */
public class Client {
    public static void main(String[] args) {
        MathSubject mathSubject = new MathSubject();
        ProxyInterceptor proxyInterceptor = new ProxyInterceptor();
        MathSubject subProxy = (MathSubject) proxyInterceptor.newProxy(mathSubject);
        subProxy.request();
        subProxy.requestFinal();

    }
}
